#ifndef ROPE_H_
#define ROPE_H_
#include "String.h"
class Rope : public String
{
	protected:
	Vector2D * grabPoint; 
	bool controllingObject;
	virtual void DrawQuad(Vector2D p1, Vector2D p2, float width1, float width2);
	
	public:
	bool pauseUntilShrink;
	bool pastMinLength;
	Object * grabObject;
	bool grabbingObject;
	
	Rope(Vector2D * anchor, StringSegment * segments, int numSegments);
	Rope(Vector2D * anchor, int numSegments, float mass, float length, float stringConstant);
	virtual ~Rope();
	
	virtual void Draw();
	virtual void Release();
	virtual void Grab(Object * object, Vector2D * point);
	virtual Vector2D Think(double elapsedTime);
};
#endif /*ROPE_H_*/
